<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form name="myform">
    用户名:<input type="text" name="userName" id="userName"><br/>
    爱好:<input type="checkbox" name="hobby" value="听音乐">听音乐
    <input type="checkbox" name="hobby" value="足球">足球
    <input type="checkbox" name="hobby" value="旅游">旅游<br/>
    <input type="button" value="统计结果" onclick="count()">
</form>
</body>
</html>